﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TdolDemo_QBZ.Models.Task;
using TdolDemo_QBZ.Repository;

namespace TdolDemo_QBZ.Domain
{
    public class TdolTaskUnitListDomain:ITdolTaskUnitListDomain
    {
       
        //get list
        public List<TaskWithUnitModel> GetTaskUnitList(int taskId)
        {
            ITdolTaskUnitListRepository taskListRepository = new TdolTaskUnitListRepository();
            var list = new List<TaskWithUnitModel>();
            list = taskListRepository.GetTaskList(taskId);
            return list;
        }
 
    }
}
